#ifndef __TIMER7_H__
#define __TIMER7_H__

#include "Timer_config.h"

#if USE_TIMER7
#include "gd32f4xx.h"
#include "systick.h"


void Timer7_init();
void Timer7_config(uint32_t prescaler, uint32_t period);

#if USE_TIMER7_CH0
void Timer7_ch0_update(float duty);
#endif

#if USE_TIMER7_CH1
void Timer7_ch1_update(float duty);
#endif

#if USE_TIMER7_CH2
void Timer7_ch2_update(float duty);
#endif

#if USE_TIMER7_CH3
void Timer7_ch3_update(float duty);
#endif

#endif //USE_TIMER7

#endif //__TIMER7_H__